package com.danbay.cloud.account.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.danbay.cloud.account.entity.AccountPermission;
import com.danbay.cloud.account.entity.PermissionGroup;

import java.util.List;

/**
 * @author SJG
 *         2018/1/9.
 */
public interface PermissionGroupMapper extends BaseMapper<PermissionGroup> {

    /**
     * 取用户和用户组下的所有权限组列表
     * @param accountPermission 用户权限信息
     * @return 权限组列表
     */
    List<PermissionGroup> getAccountPermissionGroups(AccountPermission accountPermission);
}
